<?php

require_once 'Zend/Controller/Action.php';
require_once 'Zend/Auth.php';

class IndexController extends Zend_Controller_Action
{
	protected $uid = NULL;
	
    public function init()
    {
        parent::init();
		$auth = Zend_Auth::getInstance();
		if ($auth->hasIdentity()) {
			$this->uid = $auth->getIdentity();
		}else{
			//$this->_redirect('http://accounts.'.DOMAIN.'/login');
		}
	}
	public function indexAction()
	{
		$this->view->title = 'Admin @ '.DOMAIN;
		$this->view->message = 'Checking';
		$this->view->debug = $this->uid;
	}
}
?>